/**
 * 系统管理员路由
 *
 * Created by snowingsea on 2020/01/22.
 */

/**
 * Export model definition object.
 */
module.exports = (app, prefix) => {
  const administratorPrefix = `${prefix}/administrator`;

  require('./users')(app, administratorPrefix);
  require('./environments')(app, administratorPrefix);
  require('./files')(app, administratorPrefix);
  require('./machine')(app, administratorPrefix);
  require('./license')(app, administratorPrefix);
  require('./report')(app, administratorPrefix);
  require('./tasks')(app, administratorPrefix);
  require('./user-defined-fields')(app, administratorPrefix);
  require('./logs')(app, administratorPrefix);
};
